pointer/keyboard: fix setting focus

Set focus to NULL after using the variable