fix false positives for ^ key

for issue #280