Got your problem: You are using KeyDown event which is fired when the key is pressed but till you release the key, the character doesn't become the part of the textbox. Try using KeyUp event instead.
Try below JQuery code:
$(document).ready(function() {
$("#txtSignature").keyup(function(event) {
alert($(this).val().length);
});
});