In the Scene Inspector, you can setup action handlers for the On Key Press, On Key Down, or On Key Up actions. If you setup a timeline that has pause points, then you could set these to continue the timeline so it can animate text or other changes.
If you need to filter to specific key presses, you will instead want the action to be Run JavaScript and you’ll need code to determine what to do on the specific keys.