Tried to get rpc calls working with keypressevent  but failed :(