how to get keyevent updated