KeyCode reader

Hi there,
is there a way to display the keycode for a KEY_DOWN command on the screen ?
and im not talking about the keycode itself ( the num ), im talking about the symbol on the keyboard…
lets say im pressing T on the keyboard, i want to see T on the screen and when im pressing P, same thing, i wanna see P.
please help …
10x