Handles mobile 'keypress' events too.