<html>
<head>
<meta charset="utf-8">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>
$(function() {
$('#rrr').on('keyup', function(){
alert("Yes");
});
});
</script>
</head>
<body>
<form>
<input name="rrr" type="text" size="5" maxlength="5" id="rrr">
</form>
</body>
</html>
Работает? А вы допускаете ошибки значит.