Keystroke logging device