How to read arduino input data

How to read Arduino’s text input data,Make it match to the arrow keys