Distinguish between gui and non-gui version for key mapping.