Siman 28
Presented here for study, not as a practical ruling. The Shulchan Aruch rules by Sephardi custom, the Rema's glosses by Ashkenazi custom, and the Kitzur follows Ashkenazi custom. For a practical question, ask your rabbi.
א חַיָּב אָדָם לְמַשְׁמֵשׁ בַּתְּפִלִּין בְּכָל שָׁעָה שֶׁלֹּא יַסִיחַ דַּעְתּוֹ מֵהֶם, וִימַשְׁמֵשׁ בְּשֶׁל יָד תְּחִלָּה, וּכְשֶׁיֹּאמַר וּקְשַׁרְתָּם לְאוֹת עַל יָדֶךָ יְמַשְׁמֵשׁ בְּשֶׁל יָד, וּכְשֶׁיֹּאמַר וְהָיוּ לְטֹטָפֹת בֵּין עֵינֶיךָ יְמַשְׁמֵשׁ בְּשֶׁל רֹאשׁ.
1 ...A person should regularly touch his tefillin so that he should not become distracted from them. When doing so he should touch his shel yad first. When reading the words ” וקשרתם לאות על ידך ” he should touch his shel yad and when he reads לטטפת בין עיניך ” ” he should touch his shel rosh.
ב תְּפִלִּין שֶׁל רֹאשׁ חוֹלֵץ תְּחִלָּה מִשּׁוּם דִּכְתִּיב וְהָיוּ לְטֹטָפֹת בֵּין עֵינֶיךָ כָּל זְמַן שֶׁבֵּין עֵינֶיךָ יִהְיוּ שְׁתַּיִם. צָרִיךְ לַחֲלֹץ תְּפִלִּין שֶׁל רֹאשׁ מְעֻמָּד יָנִיחַ בָּתִיק שֶׁל רֹאשׁ, וְעָלָיו שֶׁל יָד, כְּדֵי שֶׁכְּשֶׁיָּבֹא לַהֲנִיחָם יִפְגַּע בְּשֶׁל יָד תְּחִלָּה.
2 ...One should remove his shel rosh first since the words והיו לטטפת בין עיניך ” ” indicate that when wearing the shel rosh one should have them both (the shel yad and the shel rosh) on his body. The shel rosh should be removed while standing. One should place the shel yad in the tefillin bag on the shel rosh so that when he reaches in the bag he will touch the shel yad first.
ג מִנְהַג הַחֲכָמִים לְנַשֵּׁק הַתְּפִלִּין בִּשְׁעַת הֲנָחָתָן וּבִשְׁעַת חֲלִיצָתָן:
3 ...The custom of scholars is to kiss their tefillin when putting them on and taking them off.