Make debug keys work correctly.