If you work remotely from your home in Pennsylvania, then your income is considered as earned in Pennsylvania. You have to file a PA tax return.
You also need to file a nonresident Kansas return to claim the refund of KS tax withheld.
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"