Problem with saving data from Arduino

keypressed() is a built in function in Processing. You dont need to call it.