simplified log message and did key checking in debug menu