Don't allow going to DT_MODE_NONE with key accels
(cherry picked from commit cb462d6da08fd25350d55cd20672a970fb05a86a)