# Redirect Page

**URL:** <https://forum.wixstudio.com/t/redirect-page/41169>\
**Category:** Ask the community\
**Tags:** code, question\
**Created:** [May 26, 2018, 1:13am UTC](https://forum.wixstudio.com/t/redirect-page/41169 "2018-05-26T01:13:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hiddengamez12](https://avatars.discourse-cdn.com/v4/letter/h/c5a1d2/32.png) [@hiddengamez12](https://forum.wixstudio.com/u/hiddengamez12)\
**Post date:** [May 26, 2018, 1:13am UTC](https://forum.wixstudio.com/t/redirect-page/41169/1 "2018-05-26T01:13:21Z")

</div>

Hi, I don’t know if this is possible, or not, but I have been trying to have my website redirect to another page when you press the ESC key. However, I have not gotten it to work.

import wixLocation from ‘wix-location’;  
$w.body.addEventListener(“keydown”, function (event) {  
if (event.keyCode === 27)  
wixLocation.to(“[https://notepadpro.wixsite.com/notepad/home-1](https://notepadpro.wixsite.com/notepad/home-1)”);  
}  
) ;

---

<div class="post-metadata">

**Author:** ![\_tal](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/_tal/32/669_2.png) [@\_tal](https://forum.wixstudio.com/u/_tal)\
**Post date:** [May 29, 2018, 8:28am UTC](https://forum.wixstudio.com/t/redirect-page/41169/2 "2018-05-29T08:28:36Z")

</div>

Hi,  
I’m afraid that currently there’s no option to add event listener to keyboard events.  
You can suggest it as a feature request [here](https://www.wix.com/code/home/forum/feature-requests) .

Thanks,  
Tal.
