Fix keys not recognized with GUI.

Signed-off-by: Adrien <berthet.a@gmail.com>