I think the most elegant way is without any javascript but with css. You can use text-transform: uppercase (this is inline just for the idea):
Edit:
So, in your case, if you want keywords to be uppercase change:
keywords: $(".keywords").val(),
to $(".keywords").val().toUpperCase(),