Replaced gtk_key_snooper to avoid deprecated function warnings (unix)