Captured all key commands.