add debug for key.code