How can I catch a KeyPress event if my device doesn't have touch screen
Hi,I wonder how can I catch a KeyPress event if my device doesn't have touch screen,for example,I want to write a chess game,and I can chess by touch on the screen if I have a touch screen,otherwise I can chess by keyboard(up/down/left/right) to move the chess pieces on the chessboard if I don't have touch screen.
But how can I catch a KeyPress Event?I can't find any Information in the Documentation.
Many thanks