Restricting the graphical debug keys to debug mode