Fix on click event for modal key view