fix: Crash when modifier keys were initialized

Signed-off-by: Stephen L. <lrq3000@gmail.com>