Detecting Cursor Key input

I am using the keypressed event to record any user input, but am having
trouble trying to get the cursor keys to work. How is this done?

Thanks.
Paul.