fix keybinder

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
keybinder: parse x events only once

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>