I am trying to implement a Caesar Cipher but am unable to get it to work with negative numbers. The function works as expected with a positive key and modulo arithmetic.