So, I figured out how to do this, and I will leave it as a post for anyone who needs to solve this problem. (NOTE: this solution has only been tested on safari and Firefox)
for
<input id="text" type="text" />
function
document.getElementById('text').onkeydown = new function(event){return false}
, , , . , , , some, , onkeydown, false true .