Make the shortcut config widget a little more robust by not relying on QKeyEvent::text()