Ord values or constants for keys

how can I get the ord values of certain keys…say if i want a function to run when the left arrow key is pressed… or right arrow key…or is there a constants list?