Get binding mechanism and apply to key.
Want more detail? Provide more detail.
I wan't when player press the key like "K" it shows You have press the K key.
I wan't it only for 1 key! Not for all
Is this in a console application?
If so, this is basic I/O. There's a bunch of articles on this, plenty of them on this site.
Come on, details.
Yes it's console application