Thank you DriftWood. Thanks to you I learned the difference between on_cud and key_cud, and I solved my issue. I really appreciate it.