Enlace original https://community.idera.com/database-tools/powershell/powertips/b/tips/posts/detecting-key-press-1