Replaced libfakekey with QKeyEvent

obtain QGuiApplication::focusObject at runtime,
send keys via sendEvent() and QKeyEvent for cross-platform support